package com.ruoyi.test_emp.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 部门查询对象 test_dept
 * 
 * @author ruoyi
 * @date 2021-10-03
 */
@TableName("test_dept")
public class TestDept
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer deptno;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String dename;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String loc;

    /** 员工测试信息 */
    @TableField(exist = false)
    private List<TestEmp> testEmpList;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDeptno(Integer deptno) 
    {
        this.deptno = deptno;
    }

    public Integer getDeptno() 
    {
        return deptno;
    }
    public void setDename(String dename) 
    {
        this.dename = dename;
    }

    public String getDename() 
    {
        return dename;
    }
    public void setLoc(String loc) 
    {
        this.loc = loc;
    }

    public String getLoc() 
    {
        return loc;
    }

    public List<TestEmp> getTestEmpList()
    {
        return testEmpList;
    }

    public void setTestEmpList(List<TestEmp> testEmpList)
    {
        this.testEmpList = testEmpList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptno", getDeptno())
            .append("dename", getDename())
            .append("loc", getLoc())
            .append("testEmpList", getTestEmpList())
            .toString();
    }
}
